Purpose
Suppress all the superfluous columns in a table, leaving only the few we want
Solution
Use the GetFieldAttribute statement in a loop over all columns

Example
In transaction IW32 (Change Service Order) the service order operations are displayed in a table control with 89 columns:



For a particular application we only want to display 6 columns so that the user does not need to scroll horizontally and search the columns that he needs:



Instead of deleting 83 columns by their individual names we use a loop over all columns and exclude the ones that we want to keep. In addition we set some layout properties for the remaining columns:

GuiXT

Components
InputAssistant